package com.basic.boot.web.vo;

import com.basic.boot.web.model.User;
import com.google.common.base.Converter;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author cherrish
 * @time 2019-03-18 11:43
 * @name UserVO
 * @desc:
 */
@Data
public class UserVO {
    private Integer id;

    private String username;

    private Byte age;

    private Byte sex;

    public UserVO() {
    }


    public UserVO(User user) {
        BeanUtils.copyProperties(user, this);
    }

}
